﻿@model ServeNHL.Models.EVENT_CAT
@{
    ViewBag.Title = "CategoryForm";
    Layout = "~/Views/Shared/_Layout.cshtml";

    var vcl = ServeNHL.Models.VCLViewModel.getActiveVCLForDropdown();
}

<div class="row">
    <div class="spacer7"></div>
    <div class="header col-lg-12 col-md-12 col-sm-12 col-xs-12 ">

        <div class="signupLogo">Event Category Form</div>
    </div>
</div>
<div class="spacer7"></div>
@using (Html.BeginForm("SaveCategory", "Events", "POST"))
{
    @Html.AntiForgeryToken()

    <input type="hidden" value="@Html.Raw(Model.EVENT_CAT_ID)" />

    <div class="row">
        <div class="former1 col-lg-6 col-md-6 col-sm-6 col-xs-6">
            <label for="name">Name:</label>
        </div>
        <div class="former2 col-lg-6 col-md-6 col-sm-6 col-xs-6">
            <input type="text" id="name" name="name" value="@Html.Raw(Model.EVENT_CAT_NAME)" />
            <br />
        </div>
    </div>


    <div class="row">
        <div class="former1 col-lg-6 col-md-6 col-sm-6 col-xs-6">
            <label for="description">Description:</label>
        </div>
        <div class="former2 col-lg-6 col-md-6 col-sm-6 col-xs-6">
            <textarea id="description" name="description">@Html.Raw(Model.EVENT_CAT_NAME)</textarea>
            <br />
        </div>
    </div>

    <div class="row">
        <div class="former1 col-lg-6 col-md-6 col-sm-6 col-xs-6">
            <label for="status">Status:</label>
        </div>

        <div class="former2 col-lg-6 col-md-6 col-sm-6 col-xs-6">
            <select name="status" id="status">
                <option value="">Please Select Status</option>
                <option value="Active" @Html.Raw((Model.STATUS == "Active") ? "selected=\"selected\"" : "")>Active</option>
                <option value="Inactive" @Html.Raw((Model.STATUS == "Inactive") ? "selected=\"selected\"" : "")>Inactive</option>
            </select>
            <br />
        </div>
    </div>

    <div class="row">
        <div class="former1 col-lg-6 col-md-6 col-sm-6 col-xs-6">
            <label for="vclList">Limit Volunteers to only the following List</label>
        </div>

        <div class="former2 col-lg-6 col-md-6 col-sm-6 col-xs-6">
            <select name="vclList" id="vclList">
                <option value="0">Please Select</option>
                @foreach (var item in vcl)
                {
                    <option value="@Html.Raw(item.VCL_ID)">@Html.Raw(item.LIST_DESC)</option>
                }
            </select>
        </div>
    </div>
    <br />

    <div class="spacer7"></div>
    <div class="row">
        <div class="former3 col-lg-12 col-md-12 col-sm-12 col-xs-12">
            <input type="submit" value="Save Category" />
        </div>
    </div>
}
